package com.xmy.cultivate.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigInteger;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Coly
 * @since 2023-07-05
 */
@Data
@Accessors(chain = true)
@TableName("student_account")
public class StudentAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long schoolId;

    private Long studentId;

    /**
     * 学习姓名
     */
    private String studentName;

    /**
     * 0禁用，1正常，2试用
     */
    private Integer status;

    private String account;

    private String pwd;

    /**
     * 年份
     */
    private Integer yearPart;

    /**
     * 学期
     */
    private Integer quarterNum;

    /**
     * 年级
     */
    private Integer yearClassId;

    /**
     * 1学生，2教师
     */
    private Integer accountType;

    /**
     * 班型id
     */
    private Long classTypeId;

    /**
     * 1精品课学生自动生成，2手动添加
     */
    private Integer addType;

    private Integer deleted;

    private Long gradeId;

    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
}
